import React from 'react';
import { useHistory } from 'umi';

export default function Login() {
  const history = useHistory();
  const handleLogin = () => {
    // const res = userLogin()
    // token  放入前端的储存里边
    localStorage.token = '1111';
    history.push('/user');
  };
  return (
    <div>
      <button onClick={handleLogin}>点击我登录</button>
    </div>
  );
}
